<template>
  <div>
    <el-button
      type="primary"
      @click="handleDownload"
      :loading="isLoading"
      v-show="false"
      >点击下载</el-button
    >
    <el-button type="primary" @click="handleTest" v-show="true"
      >测试功能
    </el-button>
    <span>共{{ textList.length }}条下载内容</span>
  </div>
</template>

<script>
// import axios from 'axios'
import { mapState, mapGetters } from "vuex";

export default {
  name: "Operation",
  data() {
    return {};
  },
  computed: {
    ...mapState("download", ["isLoading"]),
    ...mapGetters("download", ["textList"]),
  },
  methods: {
    handleDownload() {
      alert(
        "该功能会因为列表中url导致请求超时，请优先使用下方表格中的操作按钮下载"
      );
    },
    handleTest() {
    },
  },
};
</script>

<style scoped>
span {
  display: inline-block;
  margin-left: 10px;
  margin-bottom: 10px;
}
</style>